package com.dhy.service.imp;

import com.dhy.mapper.EmployeeAndRoleMapper;
import com.dhy.pojo.relation_pojo.EmployeeAndRole;
import com.dhy.service.IEmployeeAndRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeAndRoleServiceImpl extends BaseServiceImpl<EmployeeAndRole> implements IEmployeeAndRoleService {

    @Autowired
    EmployeeAndRoleMapper employeeAndRoleMapper;

    @Override
    public List<EmployeeAndRole> selectByRoleId(Long roleId) {
        return employeeAndRoleMapper.selectByRoleId(roleId);
    }
}
